<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>商品类型列表</title>
	<script type='text/javascript' src='http://localhost/Zshop/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/Zshop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/Zshop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/Zshop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/Zshop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/Zshop';
		WEB = 'http://localhost/Zshop/index.php';
		URL = 'http://localhost/Zshop/index.php/Admin/GoodsType/index';
		HDPHP = 'http://localhost/Zshop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/Zshop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/Zshop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/Zshop/hdphp/hdphp/Extend';
		APP = 'http://localhost/Zshop/index.php/Admin';
		CONTROL = 'http://localhost/Zshop/index.php/Admin/GoodsType';
		METH = 'http://localhost/Zshop/index.php/Admin/GoodsType/index';
		GROUP = 'http://localhost/Zshop/jd';
		TPL = 'http://localhost/Zshop/jd/Zshop/Admin/Tpl';
		CONTROLTPL = 'http://localhost/Zshop/jd/Zshop/Admin/Tpl/GoodsType';
		STATIC = 'http://localhost/Zshop/Static';
		PUBLIC = 'http://localhost/Zshop/jd/Zshop/Admin/Tpl/Public';
		HISTORY = 'http://localhost/Zshop/index.php/Admin/GoodsType/add';
		HTTPREFERER = 'http://localhost/Zshop/index.php/Admin/GoodsType/add';
</script>
</head>
<body>
	<div class="wrap">
				<div class="menu_list">
					<ul>
						<li>
							<a href="javascript:;" class="action">
								商品类型
							</a>
						</li>
						<li>
							<a href="<?php echo U('add');?>">
								添加类型
							</a>
						</li>
						<li>
							<a href="javascript:hd_ajax('<?php echo U(updateCache);?>')">
								更新缓存
							</a>
						</li>
					</ul>
				</div>
				<table class="table2 hd-form">
					<thead>
						<tr>
							<td class="w30">CAT_ID</td>
							<td>类型名称</td>
							<td class="w100">操作</td>
						</tr>
					</thead>
					<?php $hd["list"]["a"]["total"]=0;if(isset($data) && !empty($data)):$_id_a=0;$_index_a=0;$lasta=min(1000,count($data));
$hd["list"]["a"]["first"]=true;
$hd["list"]["a"]["last"]=false;
$_total_a=ceil($lasta/1);$hd["list"]["a"]["total"]=$_total_a;
$_data_a = array_slice($data,0,$lasta);
if(count($_data_a)==0):echo "";
else:
foreach($_data_a as $key=>$a):
if(($_id_a)%1==0):$_id_a++;else:$_id_a++;continue;endif;
$hd["list"]["a"]["index"]=++$_index_a;
if($_index_a>=$_total_a):$hd["list"]["a"]["last"]=true;endif;?>

						<tr>
							<td><?php echo $a['cat_good'];?></td>
							<td><?php echo $a['cat_name'];?></td>
							<td class="w150">
								<a href="<?php echo U(edit);?>">修改</a> |
								<a href="<?php echo U(del);?>">删除</a> |
								<a href="">属性管理</a>
							</td>
						</tr>
					<?php $hd["list"]["a"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
				</table>
		</div>
		
</body>
</html>